﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreFrame.Business;
using MarchEstate.Manager.Dao.ReportQuery;
using System.Collections;

namespace MarchEstate.Manager.ObjectModel.ReportQuery
{
    public class ReportManager : AbstractGenericModel
    {
        private ReportManagerDao reportDao = null;

        public ReportManager()
        {
        }

        public override void InitDao()
        {
            base.InitDao();
            reportDao = NewDao<ReportManagerDao>();
        }

        public override object OperationDataModel(string method, object value)
        {
            switch (method)
            {
                case "GetCollectAccountData":
                    return reportDao.GetCollectAccountData(Convert.ToDateTime(((Hashtable)value)["bdate"]), Convert.ToDateTime(((Hashtable)value)["edate"]));
            }

            return null;
        }
    }
}
